package com.xuyiwei.xblog;

import com.xuyiwei.xblog.core.support.DateTimeKit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

import java.util.Date;

@SpringBootApplication
@EnableAsync // 启动异步调用
public class XblogWebApplication {

	private final static Logger logger = LoggerFactory.getLogger(XblogWebApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(XblogWebApplication.class, args);
		logger.info("xblog部署完毕,时间:"+ DateTimeKit.format(new Date(),"yyyy-MM-dd hh:mm:ss")+"!");

	}
}
